#include <stdio.h>
#include <stdlib.h> 
int f(char a, char b)
{	
  int x,y;
  x=(int)(a-'0');
  y=(int)(b-'0');
  return x*10+y;
  
}int main(int argc, char *argv[]) 
{	
  int num,h,m,a,b;	
  char cur[6];	
  for(num=0;num<5;num++)
  {		
    scanf("%c",&cur[num]);	
    
  }	
  h = f(cur[0],cur[1]);	
  m = f(cur[3],cur[4]);
  if(h<12||(h==12&&m==0))
  {		
    printf("Only %s.  Too early to Dang.",cur);	
    
  }
  else
  {		
    if(m>0)
    {			
      h++;		
      
    }		
    for(num = 0;num<h-12;num++)		
    printf("Dang");	
    
  }	
  return 0;
  
}


